<template>
  <div class="detail">
    <div class="top-bar">
      <nav-bar class="nav-bar">
        <div slot="left">
          <van-icon name="arrow-left" size="30" color="#fff"/>
        </div>
      </nav-bar>
    </div>
    <better-scroll class="content" ref="scroll"
       :probe-type="3" :pull-up-load="true">
       {{item}}
    </better-scroll>    
  </div>
</template>

<script>
import NavBar from 'components/common/navbar/NavBar.vue'
import betterScroll from 'components/common/scroll/betterScroll.vue'
export default {
  name: 'detail',
  data() {
    return {
      item: null,
    };
  },
  components: {
    betterScroll,
    NavBar,
  },
  created() {
    this.item = JSON.parse(this.$route.query.item);
    console.log(this.item);
  },
}
</script>

<style scoped lang="scss">
.detail {
  width: 100%;
  height: 100vh;
  .nav-bar {
    background-color: #b22222;
  }
  .content {
    height: calc(100% - 7.5rem);
    overflow: hidden;
  }
}
</style>
